//
//  YWAttendanceRecord.h
//  maintain
//
//  Created by 郑想 on 16/2/22.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
@class YWHandler;

typedef NS_ENUM(NSInteger, YWAttendanceType) {
    YWAttendanceTypeArrive = 0,//签到
    YWAttendanceTypeLeave = 1,//签退
};

typedef NS_ENUM(NSInteger, YWAttendanceUploadStatus) {
    YWAttendanceUploadStatusNull = 0,
    YWAttendanceUploadStatusUploading = 1,
    YWAttendanceUploadStatusSucceed = 2,//上传成功
    YWAttendanceUploadStatusFailure = 3,//上传失败
    YWAttendanceUploadStatusError = 4 ,//上传错误
    YWAttendanceUploadStatusChangeTime = 5,//上传失败，原因是修改了手机时间
};
@class YWLocation;

@interface YWAttendanceRecord : NSObject
/**记录Id*/
@property (nonatomic, copy) NSString *recordId;
/**上班时间*/
@property (nonatomic, assign) NSTimeInterval arriveTime;
/**上班备注*/
@property (nonatomic, copy) NSString *arriveRemark;
/**年月日用于排序*/
@property (nonatomic, assign) NSInteger yearMonthDay;
/**月日 星期用于显示*/
@property (nonatomic, copy) NSString *dateShow;

@property (nonatomic, assign)YWAttendanceType type;
/**二维码Id*/
@property (nonatomic, copy) NSString *qrcodeId;
/**位置Id*/
@property (nonatomic, assign) NSInteger locationId;
/**GPS位置*/
@property (nonatomic, copy) NSString *locationText;
/**经纬度*/
@property (nonatomic, copy) NSString * coordinate;
/**@的人集合,参与人*/
@property (nonatomic, strong) NSArray *observers;
/**参与人Id串*/
@property (nonatomic, copy) NSString *observerIds;
/**评论数组*/
@property (nonatomic, strong) NSArray *replies;
@property (nonatomic, strong) NSArray *pictures;
/**考勤人Id*/
@property (nonatomic, strong) YWHandler *user;
/**上传状态*/
@property (nonatomic, assign)YWAttendanceUploadStatus uploadStatus;

//记录模块解析用
@property (nonatomic, strong) YWLocation *location;
@end
